package Day2025_03_26;

public class Demo03 {
    public boolean IsContinuous (int[] nums) {
        // write code here
        int min = 14, max = -1, tmp = 0;
        for (int x : nums) {
            if (x == min || x == max) return false;
            else if (x == 0) tmp++;
            else {
                min = Math.min(x, min);
                max = Math.max(x, max);
            }
        }
        if (max - min + 1 == 5 || max - min + 1 + tmp == 5) return true;
        return false;
    }
}
